﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BasicData.Domain.Entities
{
    /// <summary>
    /// 生产信息实体
    /// </summary>
    public class ProductionInfo : BaseEntity
    {
        /// <summary>
        /// 生产批次
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string BatchNumber { get; set; } = null!;

        /// <summary>
        /// 保质期（天）
        /// </summary>
        public int ShelfLifeDays { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [MaxLength(100)]
        public string? ProductionLicenseNumber { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        [MaxLength(200)]
        public string? ManufacturerName { get; set; }
        

        /// <summary>
        /// 封面图
        /// </summary>
        [MaxLength(500)]
        public string? CoverImageUrl { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public int GoodsId { get; set; }


    }
}
